-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[YUNIKORN-1875] Support for Compressed Encoded configMap BinaryData, gzip compression support #675
Conversation
…gzip support A config map on K8s can only be 1MB. Thus a larger config map could be sent by compressing, encoding, and storing in configMap.BinaryData. This commit makes Yunikorn support gzip compressed 64bit encoded BinaryData.
Import ordering changes, error handling and logging for gzipReader close, added testcases for decompress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Shadow declaration of err variable removed.
Codecov Report
@@ Coverage Diff @@
## master #675 +/- ##
==========================================
- Coverage 71.92% 71.83% -0.10%
==========================================
Files 51 51
Lines 8082 8116 +34
==========================================
+ Hits 5813 5830 +17
- Misses 2073 2086 +13
- Partials 196 200 +4
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
waiting for the build to finish before committing |
@sidbroski hi, I come from #752 It seems this feature encounters the base64 decoding error. Just curious, have you launched this function in your machine? If so, please share the k8s version or env to us. I want to avoid the compatibility issue if #752 removes the explicit decoding from yunikorn. |
What is this PR for?
A config map on K8s can only be 1MB. Thus a larger config map could be sent by compressing, encoding, and storing in configMap.BinaryData.
This commit makes Yunikorn support gzip compressed 64bit encoded BinaryData.
What type of PR is it?
Todos
What is the Jira issue?
YUNIKORN-1875
How should this be tested?
Screenshots (if appropriate)
Questions: